#include <iostream>
#include <fstream>

long long greatest_common_divisor(long long a, long long b, long long &x, long long &y)
{
	if (a == 0)
	{
		x = 0;
		y = 1;
		return b;
	}
	long long x_next, y_next, temp;
	temp = greatest_common_divisor(b % a, a, x_next, y_next);
	x = y_next - (b / a) * x_next;
	y = x_next;
	return temp;
}

int main()
{
	std::ifstream in("in.txt");
	std::ofstream out("out.txt");
	long long a, b, c;
	while (in >> a >> b >> c)
	{
		if ((a == 0) && (b == 0))
		{
			if (c == 0)
				out << "0 0\n";
			else
				out << "<none>\n";
			continue;
		}
		long long x, y;
		long long g = greatest_common_divisor(a, b, x, y);
		if (c % g == 0)
			out << x * c / g << " " << y * c / g << '\n';
		else
			out << "<none>\n";
	}
	return 0;
}